﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace CPPEI.Coolzon.UI.DataPartLib
{
    public partial class DataChartSectors
    {
        private int _XFontSize;
        [Category("Appearance")]
        [DisplayName("字体大小")]
        [Description("FontSize")]
        [Editor(typeof(UI.XProperty.Editors.XIntEditor), typeof(UI.XProperty.XPropertyValueEditor))]
        [XProperty(XPropertyCategory.Appearance, "FontSize", "字体大小")]
        public int XFontSize
        {
            get { return _XFontSize; }
            set
            {
                _XFontSize = value;
                Refresh();
            }
        }

        private FontWeight _XFontWeight;
        [Category("Appearance")]
        [DisplayName("字体加粗")]
        [Description("FontWeight")]
        [Editor(typeof(UI.XProperty.Editors.XFontWeightEditor), typeof(UI.XProperty.XPropertyValueEditor))]
        [XProperty(XPropertyCategory.Appearance, "FontWeight", "字体加粗")]
        public FontWeight XFontWeight
        {
            get { return _XFontWeight; }
            set
            {
                _XFontWeight = value;
                Refresh();
            }
        }

        private FontFamily _XFontFamily;
        [Category("Appearance")]
        [DisplayName("字体")]
        [Description("FontFamily")]
        [Editor(typeof(UI.XProperty.Editors.XFontFamilyEditor), typeof(UI.XProperty.XPropertyValueEditor))]
        [XProperty(XPropertyCategory.Appearance, "FontFamily", "字体")]
        public FontFamily XFontFamily
        {
            get { return _XFontFamily; }
            set
            {
                _XFontFamily = value;
                Refresh();
            }
        }

        private bool? _XIsLineVisible;
        [Category("Appearance")]
        [DisplayName("是否显示线")]
        [Description("IsLineVisible")]
        [Editor(typeof(UI.XProperty.Editors.XBooleanEditor), typeof(UI.XProperty.XPropertyValueEditor))]
        [XProperty(XPropertyCategory.Appearance, "IsLineVisible", "是否显示线")]
        public bool? XIsLineVisible
        {
            get { return _XIsLineVisible; }
            set
            {
                _XIsLineVisible = value;
                Refresh();
            }
        }

        private bool? _XItemNameVisible;
        [Category("Appearance")]
        [DisplayName("是否显示ItemName")]
        [Description("IsItemNameVisible")]
        [Editor(typeof(UI.XProperty.Editors.XBooleanEditor), typeof(UI.XProperty.XPropertyValueEditor))]
        [XProperty(XPropertyCategory.Appearance, "IsItemNameVisible", "是否显示ItemName")]
        public bool? XItemNameVisible
        {
            get { return _XItemNameVisible; }
            set
            {
                _XItemNameVisible = value;
                Refresh();
            }
        }

        private bool? _XItemValueVisible;
        [Category("Appearance")]
        [DisplayName("是否显示ItemValue")]
        [Description("IsItemValueVisible")]
        [Editor(typeof(UI.XProperty.Editors.XBooleanEditor), typeof(UI.XProperty.XPropertyValueEditor))]
        [XProperty(XPropertyCategory.Appearance, "IsItemValueVisible", "是否显示ItemValue")]
        public bool? XItemValueVisible
        {
            get { return _XItemValueVisible; }
            set
            {
                _XItemValueVisible = value;
                Refresh();
            }
        }
    }
}
